//
//  OrderIngHeadCusView.m
//  UEAssistant
//
//  Created by mac on 2017/2/28.
//  Copyright © 2017年 youyixinxi. All rights reserved.
//

#import "OrderIngHeadCusView.h"

@interface OrderIngHeadCusView ()

@property (nonatomic, strong) UIImageView           *headView;
@property (nonatomic, strong) UILabel               *name;
@property (nonatomic, strong) UILabel               *personType;

@end

@implementation OrderIngHeadCusView

- (instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        [self setUI];
    }
    return self;
}

- (void)setUI{

    self.backgroundColor = [UIColor whiteColor];
    
    _headView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 60*Radio, 60*Radio)];
    _headView.layer.cornerRadius = _headView.frame.size.height/2;
    _headView.layer.masksToBounds = YES;
    _headView.image = [UIImage imageNamed:@"user"];
    [self addSubview:_headView];
    
    _name = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 20)];
    _name.center = CGPointMake(_headView.center.x,_headView.center.y+_headView.frame.size.height/2+10);
    _name.backgroundColor = [UIColor clearColor];
    _name.text = @"哈哈哈";
    _name.font = [UIFont systemFontOfSize:FLEXIBLE(13)];
    _name.textColor = RGB(141, 141, 141, 1);
    _name.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_name];

    _personType = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 50, 20)];
    _personType.center = CGPointMake(_headView.center.x,_headView.center.y+_headView.frame.size.height/2+5+_name.frame.size.height+2);
    _personType.backgroundColor = [UIColor clearColor];
    _personType.text = @"翻译";
    _personType.font = [UIFont systemFontOfSize:FLEXIBLE(13)];
    _personType.textColor = RGB(141, 141, 141, 1);
    _personType.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_personType];

}

@end
